<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例9</title>
</head>
<body>
    <script>
        const obj= {
            name:'jack',
            age:19,
            gender:'boy'
        }
        console.log(Object.keys(obj))
        console.log(Object.values(obj))
        console.log(Object.entries(obj))
    </script>
</body>
</html>